package cn.stylefeng.guns.user.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.user.entity.User;
import cn.stylefeng.guns.user.dto.UserDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * user 服务类
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
public interface UserService extends IService<User> {

    /**
     * 分页查询user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    PageResult<User> page(UserDTO userParam);

    /**
     * 查询所有user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    List<User> list();

    /**
     * 添加user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    User add(UserDTO userParam);

    /**
     * 删除user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void delete(UserDTO userParam);

    /**
     * 编辑user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void edit(UserDTO userParam);

    /**
     * 查看详情user
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    User detail(UserDTO userParam);

    ResponseData Load(String userName, String password);

    ResponseData adminLogin(UserDTO userDTO);
}